package app.species.ANN;

import java.io.Serializable;
import java.util.ArrayList;

public class Chromosome implements Serializable{

	private static final long serialVersionUID = 1L;
	ArrayList<Gene> genes;

	public Chromosome(){

		this.genes = new ArrayList<Gene>();

	}

	public void addGene(Gene g){

		this.genes.add(g);

	}
	
	public void removeGene(int index){
		genes.remove(index);
	}

	public int length(){

		return genes.size();

	}
	
}
